furny.ga.operators
Class SegmentCutCrossoverOp

java.lang.Object
  extended by ga.core.goperators.ProbabilityOp
      extended by furny.ga.operators.SegmentCutCrossoverOp
All Implemented Interfaces:
ICrossoverOp<FurnLayoutIndividual>, IGeneticOp

public class SegmentCutCrossoverOp
extends ProbabilityOp
implements ICrossoverOp<FurnLayoutIndividual>

Crossover operator that does the segment cut crossover. The function is explained in the master thesis of Stephan Dreyer.

Since:
12.08.2012
Author:
Stephan Dreyer

Constructor Summary
SegmentCutCrossoverOp(int pCrossOver)
          Creates the operator with a given crossover probability.
 
Method Summary
 IndividualList<FurnLayoutIndividual> crossover(FurnLayoutIndividual individual1, FurnLayoutIndividual individual2, GAContext context)
          Performs a crossover (if probability met) of the given individuals and returns a list of the results.
static void main(java.lang.String[] args)
          Main method for testing.
 
Methods inherited from class ga.core.goperators.ProbabilityOp
doOperate, doOperate, getRandom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentCutCrossoverOp

public SegmentCutCrossoverOp(int pCrossOver)
Creates the operator with a given crossover probability.

Parameters:
pCrossOver - Crossover probability.
Since:
12.08.2012
Method Detail

crossover

public IndividualList<FurnLayoutIndividual> crossover(FurnLayoutIndividual individual1,
                                                      FurnLayoutIndividual individual2,
                                                      GAContext context)
Description copied from interface: ICrossoverOp
Performs a crossover (if probability met) of the given individuals and returns a list of the results.

Specified by:
crossover in interface ICrossoverOp<FurnLayoutIndividual>
Parameters:
individual1 - First individual
individual2 - Second individual
context - The GA context.
Returns:
List of the results.

main

public static void main(java.lang.String[] args)
Main method for testing.

Parameters:
args - No arguments required.
Since:
12.08.2012